<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/headersearch.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="./css/home_allnews_list.css" />
    <style>
        .aui-refresh-content{
            margin-top: 0px;
            z-index: 77;
        }
        .maskbg {
            background: rgba(0,0,0,.3);
            z-index: 98;
            position: fixed;
            top: 0;
            bottom: 0;
            width: 100%;
        }
        .choosebox {
            position: fixed;
            top: 22%;
            left: 0;
            right: 0;
            /* padding: 15px; */
            border-top: solid 1px #eee;
            margin-top: 5px;
            background: #fff;
            padding-bottom: 10px;
            z-index: 99;
            height: 50%;
            
            overflow-y:scroll;
        }
        .zhezhao{
            background: rgba(255,255,255,.5);
            z-index: 999;
            position: absolute;
            top: 6px;
            bottom: 0;
            border-radius: 8px;
        }
        .nochoose{
            color: #bbb!important;
        }
        .showTopstyle{
            width: 50%;
            height: 180px!important;
            top:40%;
            margin: 0 auto;
            border-radius: 6px;
        }
        .topstyle{
            width: 100%;
            height: 48px;
            line-height: 48px;
            text-align: center;
            color: #666;
            border-top: solid 0.5px #f7f7f7; 
            
            
        }
        .nametitle{
            width: 100%;
            height: 80px;
            line-height: 80px;
            text-align: center;
            color: #000;
            font-size: 0.85rem;
            font-weight: 500;
            /* padding-bottom: 10px;
            margin-bottom: 10px; */
        }
        .new-border-bottom{
            border-bottom: solid 0.5px #e5e5e5;
        }
        .news-item{
            margin-bottom: 12px;
        }
    </style>
</head>
<body>
    <div id="app" v-cloak>

        <!-- 弹框黑色背景 -->
        <div v-on:click="doHideSearch()" v-if="showsearch||showTop" class="maskbg">
        </div>
        <div  v-if="showTop" class="choosebox showTopstyle" style="height:60px;">
            <div class="nametitle">{{name}}</div>
            <div class="topstyle" v-on:click="Totoplist()">置顶</div>
            <div class="topstyle" v-on:click="deletelist()">删除</div>
        </div>
   
        <section id="main_refresh" class="aui-refresh-content">
            <div class="posibox boxsty">
                <section class="aui-grid aui-margin-b-15" style="padding-bottom:0.5rem; margin-bottom:0rem!important;">
                    <div class="aui-row yy-content">
                        <!-- @touchmove="gettouchmove()" @touchend="gettouchend()" -->
                        <div class="news-item" 
                        @touchStart="gettouchStart(index,item.ID,item.Name,item.IsShow,item.SortOrder)" 
                        
                        v-for="(item,index) in list" v-on:click="do_opentypelist(item.ID)">
                            <div class="picbox">
                                <div class="newsitem-pic">
                                    <img v-if="item.ID==690" src="../image/icon/shebei.png">
                                    <img v-if="item.ID==692" src="../image/icon/anfang.png">
                                    <img v-if="item.ID==693" src="../image/icon/huanjing.png">
                                    <img v-if="item.ID==956" src="../image/icon/shenhe.png">
                                    <img v-if="item.ID==814" src="../image/icon/kefu.png">
                                    <img v-if="item.ID==695" src="../image/icon/tousu.png">
                                    <img v-if="item.ID==963" src="../image/icon/tongzhi.png">
                                    <img v-if="item.ID==1064" src="../image/icon/neibutongzhi.png">
                                </div>
                                <div v-if="item.NoReadNumber>0&&item.NoReadNumber<=99" class="newsnum">{{item.NoReadNumber}}</div>
                                <div v-if="item.NoReadNumber>99" class="newsnum"><i class="icon iconfont icon-sandian" style="font-size: 0.5rem;"></i></div>
                            </div>
                            <div class="newsitem-text aui-padded-b-10" v-bind:class="{'new-border-bottom':index<list.length-1}" >
                                <div class="text-one">
                                    <div class="text-title ellipsis-1">{{item.Name}}</div>
                                    <div class="text-time ellipsis-1">{{item.AddTime}}</div>
                                </div>
                                <div class="text-detail ellipsis-1">{{item.Summary}}</div>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/vue.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="js/home_news_center.js"></script>
</html>
